/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JanelaCortina.java
 *
 * Created on 19/06/2011, 21:38:37
 */
package spoc.interfaces;

import spoc.classes.Cortina;

/**
 *
 * @author dolalima
 */
public class JanelaCortina extends Janela {
    
    private Cortina cortina;
    private TipoJanela tipo;

    /** Creates new form JanelaCortina */
    public JanelaCortina(TipoJanela tipo, Cortina c) {
        this.tipo = tipo;
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        labelNome = new javax.swing.JLabel();
        campoCodigo = new javax.swing.JTextField();
        campoNome = new javax.swing.JTextField();
        labelCodigo = new javax.swing.JLabel();
        labelLista = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        botaoAdicionarItem = new javax.swing.JButton();
        botaoRemoverItem = new javax.swing.JButton();
        labelMaoDeObra = new javax.swing.JLabel();
        comboMaoDeObra = new javax.swing.JComboBox();
        botaoCancelar = new javax.swing.JButton();
        botaoGerarPedido = new javax.swing.JButton();
        campoItemCodigo = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        pesquisaItem = new javax.swing.JButton();
        campoCoef = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(400, 300));
        getContentPane().setLayout(new java.awt.GridBagLayout());

        labelNome.setFont(new java.awt.Font("Ubuntu", 1, 12));
        labelNome.setText("Nome:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
        getContentPane().add(labelNome, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        getContentPane().add(campoCodigo, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = 6;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        getContentPane().add(campoNome, gridBagConstraints);

        labelCodigo.setFont(new java.awt.Font("Ubuntu", 1, 12));
        labelCodigo.setText("Codigo:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
        getContentPane().add(labelCodigo, gridBagConstraints);

        labelLista.setFont(new java.awt.Font("Ubuntu", 1, 12));
        labelLista.setText("Lista de item:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
        getContentPane().add(labelLista, gridBagConstraints);

        jScrollPane1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 3;
        gridBagConstraints.gridwidth = 7;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.ipadx = 250;
        gridBagConstraints.ipady = 300;
        getContentPane().add(jScrollPane1, gridBagConstraints);

        botaoAdicionarItem.setText("Adicionar");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 5;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
        getContentPane().add(botaoAdicionarItem, gridBagConstraints);

        botaoRemoverItem.setText("Remover");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 6;
        gridBagConstraints.gridy = 4;
        getContentPane().add(botaoRemoverItem, gridBagConstraints);

        labelMaoDeObra.setFont(new java.awt.Font("Ubuntu", 1, 12));
        labelMaoDeObra.setText("Mão de Obra:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.ipady = 25;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
        getContentPane().add(labelMaoDeObra, gridBagConstraints);

        comboMaoDeObra.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Selecione", "Tipo 1", "Tipo 2", "Tipo 3" }));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 5;
        gridBagConstraints.ipadx = 75;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
        getContentPane().add(comboMaoDeObra, gridBagConstraints);

        botaoCancelar.setText("Cancelar");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 6;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
        getContentPane().add(botaoCancelar, gridBagConstraints);

        botaoGerarPedido.setText("Cadastrar");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 6;
        gridBagConstraints.gridy = 6;
        getContentPane().add(botaoGerarPedido, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
        getContentPane().add(campoItemCodigo, gridBagConstraints);

        jLabel1.setText("Codigo Item");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 4;
        getContentPane().add(jLabel1, gridBagConstraints);

        jLabel2.setText("Coef.");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
        getContentPane().add(jLabel2, gridBagConstraints);

        pesquisaItem.setText("P");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
        getContentPane().add(pesquisaItem, gridBagConstraints);
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 4;
        gridBagConstraints.ipadx = 30;
        getContentPane().add(campoCoef, gridBagConstraints);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new JanelaCortina(TipoJanela.CADASTRO, null).setVisible(true);
                
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botaoAdicionarItem;
    private javax.swing.JButton botaoCancelar;
    private javax.swing.JButton botaoGerarPedido;
    private javax.swing.JButton botaoRemoverItem;
    private javax.swing.JTextField campoCodigo;
    private javax.swing.JTextField campoCoef;
    private javax.swing.JTextField campoItemCodigo;
    private javax.swing.JTextField campoNome;
    private javax.swing.JComboBox comboMaoDeObra;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel labelCodigo;
    private javax.swing.JLabel labelLista;
    private javax.swing.JLabel labelMaoDeObra;
    private javax.swing.JLabel labelNome;
    private javax.swing.JButton pesquisaItem;
    // End of variables declaration//GEN-END:variables

    @Override
    protected void reiniciar() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    protected void preencher() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    protected boolean existemDependencias() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    protected void desabilitarCampos() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    protected void cadastrar() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    protected void alterar() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    void setCodigo(int cod) {
        this.campoItemCodigo.setText(String.valueOf(cod));
    }
}
